Component({
  properties: {
    icon: {
      type: String,
      value: ''
    },
    content: {
      type: String,
      value: ''
    },
    value: {
      type: String,
      value: ''
    },
    showValue: {
      type: Boolean,
      value: false
    },
    actionIcon: {
      type: String,
      value: '/assets/record/左.png'
    },
    isPlus: {
      type: Boolean,
      value: false
    },
    // 新增类型属性，用于区分不同的记录类型
    type: {
      type: String,
      value: ''
    }
  },

  data: {},

  methods: {
    // 点击事件处理函数
    onItemTap() {
      this.triggerEvent('itemtap', {
        type: this.data.type,
        content: this.data.content
      });
    }
  }
});